#pragma once

#include<iostream>
#include<string>
#include<fstream>
#include<sstream>
#include<vector>
#include<algorithm>

using namespace std;
const string extension=".txt";
const string addedTo="added to";
const string contentDeleted="all content deleted from ";
const string incorrectCommand="Incorrect Command,enter command correctly";
const string isEmpty=" is empty.";
const string deletedFrom="deleted from ";
const string addString="add";
const string deleteString="delete";
const string clearString="clear";
const string displayString="display";
const string exitString="exit";
const string isReady=" is ready for use";
const string foundString=" found in following occurences: ";
const string welcome="Welcome to TextBuddy. ";
const string commandString="command:";
const string searchString="search";
const string sortString="sort";
const string atIndex=" at index :";
const string searchUnsuccessful="The entered string is not present";
const string sortCompleted="Sort completed";
class TextBuddy
{
public:string fileName;
	   int noSentences;
	   vector<string>paragraph;
	   //Function declarations
public:  
	void SetName(string);
	void DisplayHeaderText();
	void Add(string);
	void Clear();
	string Sort();
	void Display();
	void Display(vector<string>,vector<int>);
	void UpdateFile();
	void TrimString(string&);
	void DeleteSentence(int&);
	int CaseInsensitiveSearch(string a,string b);
	string Search(string);
	int ConvertStringToInt(string);
	void OperationHandler(string&,string&,string&);
	void Execute();
	string ConvertVectorToString(vector<string>);
};

